<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */

namespace App\Http\Controllers;

use App\Api\BaseApi;
use App\Models\User;
use App\Service\Group\GroupService;
use App\Service\Statistics\StatisticsService;
use App\Service\User\BeanAccountService;
use App\Service\User\UserServices;
use Illuminate\Http\Request;

class TestController extends BaseApi
{
    public function index1()
    {
        UserServices::make()->reconstructTheBenefits();
//        BeanAccountService::make()->releaseTheGiftPackGoldenBeans();
//        PointAccountServices::make()->autoDividends();
//        DividendService::make()->pointsConversion();
    }

    public function identify(Request $request)
    {
        $user = User::query()->find(3);
        $user->parent = 1;
        $user->save();
        return responses(['token' => bcrypt(123456)]);
    }

    public function identify2(Request $request)
    {
        BeanAccountService::make()->releaseTheGoldenBeansOfTheSpell();
        GroupService::make()->initGroupSession();
        StatisticsService::make()->pointPrice();
        BeanAccountService::make()->releaseTheGiftPackGoldenBeans();
    }
}
